from fastapi import APIRouter

ping_router = APIRouter()
_active = True  # 激活状态

from fastapi.responses import FileResponse
@ping_router.get(
    path="/ping",
    summary="ping",
)
def ping():
    return "pong"

# @ping_router.get("/download/{file_path}/{file_name}")
# async def download_small_file(file_path: str, file_name: str):
#     print("filename")
#     file_path = f"{file_path}/{file_name}"
#     return FileResponse(file_path, filename=file_name, media_type="application/octet-stream")